package dao;

import entity.User;
import org.apache.ibatis.annotations.Param;
import param.UserParam;

import java.util.List;

/**
 * @author Miss Chen
 * @version 1.0
 * @date 2024年09月09日14:57
 */
public interface UserDao {
    public void insertUser(User user);
    public User selectById(Integer id);
    public List<User> selectAll();
    public void insertUser2(User user);
    public User selectById2(Integer id);
    public User selectById3(Integer id);
    public User selectByUsernameAndPassword(UserParam userParam);
    public User selectByUsernameAndPassword2(String username,String password);
    public User selectByUsernameAndPassword3(@Param("aa") String username,@Param("bb") String password);
    public List<User> selectByUsername(String username);
    public List<User> selectByUsername2(String username);
    public void insertReturnPrimaryKey(User user);
    public void updateUser(User user);
    public void deleteById(Integer id);
    public List<User> selectByParams(User user);
    public List<User> selectByParams2(User user);
    public List<User> selectByParams3(User user);
    public void updateByParams(User user);
    public List<User> selectByParams4(User user);
    public void updateByParams2(User user);
    public List<User> selectByIds(List<Integer> ids);
}
